package com.example.project;

import com.example.project.config.SystemConfig;
import com.example.project.constant.Constants;
import com.example.project.utils.StartUtils;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.util.StringUtils;

import javax.annotation.Resource;
import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
import java.util.concurrent.CompletableFuture;

@Slf4j
@SpringBootApplication
public class ProjectFrameApplication implements CommandLineRunner {

    @Resource
    private SystemConfig systemConfig;

    @Value("${server.port}")
    public String port;

    public static void main(String[] args) {
        SpringApplication.run(ProjectFrameApplication.class, args);

    }

    @Override
    public void run(String... args) throws Exception {
        Constants.SYSTEM_NAME = systemConfig.getSystemName();
        String frontUrl = "http://127.0.0.1:" + port + "/";

    }


}
